package com.project.web.system.service.impl.app;

import com.project.web.system.mapper.app.RoleMapper;
import com.project.web.system.model.app.Role;
import com.project.web.system.service.app.RoleService;
import com.project.web.system.service.impl.common.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName RoleServiceImpl
 * @Description
 * @Author 王天豪
 * @Date 2020/8/14 10:50 AM
 * @Version 1.0
 */
@Service("roleServiceImpl")
public class RoleServiceImpl extends BaseServiceImpl<Role,Long> implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Role selectByRoleCode(Role role) {
        return roleMapper.selectByRoleCode(role);
    }
}
